package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 水质指标异常占比统计对象 dispatchWaterQualityIndicatorAbnormalRatioStats
 * 
 * @author ruoyi
 * @date 2025-03-02
 */
public class DispatchWaterQualityIndicatorAbnormalRatioStats extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 水质指标异常占比统计编号 */
    private Long waterQualityIndicatorAbnormalRatioStatsId;

    /** 关联的水质指标 ID */
    @Excel(name = "关联的水质指标 ID")
    private Long waterQualityIndicatorsId;

    /** 统计日期 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "统计日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date statDate;

    /** 该指标该时间段内异常的监测次数 */
    @Excel(name = "该指标该时间段内异常的监测次数")
    private Long abnormalCount;

    /** 该指标该时间段内的总监测次数 */
    @Excel(name = "该指标该时间段内的总监测次数")
    private Long totalCount;

    /** 创建人 */
    @Excel(name = "创建人")
    private String creator;

    /** 更新人 */
    @Excel(name = "更新人")
    private String updater;

    /** 水质指标异常占比 */
    @Excel(name = "水质指标异常占比")
    private BigDecimal abnormalRatio;

    public void setWaterQualityIndicatorAbnormalRatioStatsId(Long waterQualityIndicatorAbnormalRatioStatsId) 
    {
        this.waterQualityIndicatorAbnormalRatioStatsId = waterQualityIndicatorAbnormalRatioStatsId;
    }

    public Long getWaterQualityIndicatorAbnormalRatioStatsId() 
    {
        return waterQualityIndicatorAbnormalRatioStatsId;
    }
    public void setWaterQualityIndicatorsId(Long waterQualityIndicatorsId) 
    {
        this.waterQualityIndicatorsId = waterQualityIndicatorsId;
    }

    public Long getWaterQualityIndicatorsId() 
    {
        return waterQualityIndicatorsId;
    }
    public void setStatDate(Date statDate) 
    {
        this.statDate = statDate;
    }

    public Date getStatDate() 
    {
        return statDate;
    }
    public void setAbnormalCount(Long abnormalCount) 
    {
        this.abnormalCount = abnormalCount;
    }

    public Long getAbnormalCount() 
    {
        return abnormalCount;
    }
    public void setTotalCount(Long totalCount) 
    {
        this.totalCount = totalCount;
    }

    public Long getTotalCount() 
    {
        return totalCount;
    }
    public void setCreator(String creator) 
    {
        this.creator = creator;
    }

    public String getCreator() 
    {
        return creator;
    }
    public void setUpdater(String updater) 
    {
        this.updater = updater;
    }

    public String getUpdater() 
    {
        return updater;
    }
    public void setAbnormalRatio(BigDecimal abnormalRatio) 
    {
        this.abnormalRatio = abnormalRatio;
    }

    public BigDecimal getAbnormalRatio() 
    {
        return abnormalRatio;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("waterQualityIndicatorAbnormalRatioStatsId", getWaterQualityIndicatorAbnormalRatioStatsId())
            .append("waterQualityIndicatorsId", getWaterQualityIndicatorsId())
            .append("statDate", getStatDate())
            .append("abnormalCount", getAbnormalCount())
            .append("totalCount", getTotalCount())
            .append("createTime", getCreateTime())
            .append("creator", getCreator())
            .append("updater", getUpdater())
            .append("updateTime", getUpdateTime())
            .append("abnormalRatio", getAbnormalRatio())
            .toString();
    }
}
